package com.fitns.user.exception;

public enum WorkTimeMsgCode implements MsgCode {
    WORK_TIME_ORGAN_OR_IS_NULL(50001, "未选中区域所属机构或上级！"),
    WORK_TIME_ID_IS_NULL(50002,"id不能为空"),
    WORK_TIME_DATA_IS_NOT_EXIST(50003,"该项不存在"),
    WORK_TIME_DATA_IS_NULL(50004,"对象不能为空"),
    WORK_TIME_NAME_IS_NULL(50005,"名称为空");


    private int code;
    private String message;

    WorkTimeMsgCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}